Copyright: Polar Engineering and Consulting


WinWrap Basic Editor

The WinWrap Basic Editor is an interactive design environment for developing, testing and executing WinWrap Basic scripts.

•	IDE

•	UserDialog Editor

•	Object Browser

WinWrap Basic and WinWrap Basic Editor
Copyright 1993-1997 Polar Engineering and Consulting
All rights reserved.


IDE Overview

•	File, Edit, View, Macro, Debug, Sheet and Help Menus

•	Immediate, Watch, Stack and Loaded Windows

•	Object and Proc Lists

•	Sheet Tabs


Object Browser Overview

The Object Browser shows information about all the special data types that are available.


UserDialog Editor Overview

 A UserDialog is described by a Begin Dialog...End Dialog block. To graphically edit a UserDialog place the current selection in a UserDialog block and select Edit|UserDialog.


Immediate Window

Evaluate an expression, assign a variable or call a subroutine.

•	Type "?expr" <Enter> to show the value of "expr".

•	Type "var = expr" <Enter> to change the value of "var".

•	Type "subname args" <Enter> to call a subroutine or built-in instruction.

•	Type "Trace" <Enter> to toggle trace mode. Trace mode prints each statement in the immediate window when a macro/module is running.


Watch Window

List the variables, functions and expressions that are calculated and displayed.

•	Each time execution pauses the value of each line in the window is updated.

•	The expression to the left of "->" may be edited.

•	Pressing Enter updates all the values immediately.

•	Pressing Ctrl-Y deletes the line.


Stack Window

List the lines which called the current statement.

•	The first line is the current statement. The second line is the one that called the first. And so on.

•	Clicking on a line brings that macro/module into a sheet and highlights the line in the edit window.


Loaded Window

List all the currently active macros and loaded modules.

•	These macros/modules are locked and can only be viewed (not edited).

•	Clicking on a line brings that macro/module into a sheet and activates the sheet.


Object and Proc Lists

The object list shows all the objects for the current module.

•	The "(general)" object groups all of the procedures which are not part of any specific object.

•	The proc list shows all the procedures for the current object.

•	Selecting a procedure that is not bold inserts the proper procedure definition for that procedure.


Sheet Tabs

Each sheet has a tab.

•	Clicking once on a tab makes that sheet the current sheet.

•	Double-clicking closes that sheet.


Edit Area

The current macro/module are edited/viewed in this area.

•	Macros/Modules that are not currently loaded may be edited.

•	Changes to a line are automatically capitalized and highlighted when a different line is selected.

•	Break points may be toggled on/off. A dot at the front of the line indicates a break point.


Status Bar

Status information is shown in this line.


File Menu

The File menu provides the normal options.

Item	Description

New 	Create a new macro.
Hot Key: Ctrl+N

New Module 	Create a new macro module (code, object or class).

Open... 	Load an existing macro/module from disk.
Hot Key: Ctrl+O

Close 	Close the current macro/module.

Save 	Save the current macro/module to disk.
Hot Key: Ctrl+S

Save As... 	Save the current macro/module to disk as a particular file.

Save All 	Save all the macros/modules to disk.

Print 	Print the current macro/module.
Hot Key: Ctrl+P

Print Setup... 	Select the default printer.

Exit 	Exit WinWrap Basic Editor.


Edit Menu

The Edit menu provides the normal options.

Item	Description

Undo 	Undo the last edit.
Hot Key: Ctrl+Z

Cut 	Move the selected text to the Clipboard.
Hot Key: Ctrl+X

Copy 	Copy the selected text to the Clipboard.
Hot Key: Ctrl+C

Paste 	Paste the Clipboard text over the selected text.
Hot Key: Ctrl+V

Delete 	Delete the selected text.
Hot Key: Del

Select All 	Select all of the text.

UserDialog... 	Edit a UserDialog. (see UserDialog Editor)

Find... 	Find a string.
Hot Key: Ctrl+F

Replace... 	Replace a string with another.
Hot Key: Ctrl+R

Again 	Repeat last find or replace.
Hot Key: F3

Font... 	Set the display font.

Properties 	Edit the module's properties.


View Menu

The View menu provides the normal options.

Item	Description

Immediate 	Show the immediate output window.
Hot Key: Ctrl+E

Watch 	Show the watch expressions window.
Hot Key: Ctrl+W

Stack 	Show the call stack window.
Hot Key: Ctrl+T

Loaded 	Show the loaded macros/modules window.
Hot Key: Ctrl+L

Toolbar 	Toggle the toolbar on/off.

Status Bar 	Toggle the status bar on/off.

Edit Buttons 	Toggle the edit buttons on/off.

Always Split 	Toggle the split on/off.

Object/Proc 	Select the Object/Proc list display mode.


Macro Menu

The Macro menu provides options for starting macros, stopping macros and extending the Basic language.

Item	Description

Run 	Run the macro to completion. (If the macro is not active, start it.)
Hot Key: F5

Pause 	Stop the macro/module. Execution can be continued.
Hot Key: Esc

End 	Terminate the macro/module. Execution cannot be continued.


Debug Menu

The Debug menu provides the options for debugging macros/modules.

Item	Description

Step Into 	Execute the current line. If the current line is a subroutine or function call, stop on the first line of that subroutine or function. (If the macro is not active, start it.)
Hot Key: F8

Step Over 	Execute to the next line. If the current line is a subroutine or function call, execute that subroutine of function completely.
Hot Key: Shift+F8

Step Out 	Step out of the current subroutine or function call.
Hot Key: Ctrl+F8

Step to Cursor 	Execute until the line the cursor is on is the current line. (If the macro is not active, start it.)
Hot Key: F7

Toggle Break 	Toggle the break point on the current line.
Hot Key: F9

Quick Watch 	Show the value of the expression under of the cursor in the immediate window.
Hot Key: Shift+F9

Add Watch 	Add the expression under of the cursor in the watch window.
Hot Key: Ctrl+F9

Browse 	Show the methods of the expression under of the cursor. (see Object Browser)

Set Next 	Set the next statement to be executed. Only statements in the current subroutine/function can be selected.

Show Next 	Show the next statement to be executed.


Help Menu

The Help menu provides the normal options.

Item	Description

Editor Help 	Show the table of contents for WinWrap Basic Editor.

Language Help 	Show the table of contents for the WinWrap Basic language.
Hot Key: Shift+F1

Topic Search 	Show WinWrap Basic language help for the keyword under the cursor.
Hot Key: F1

About WinWrap
WinWrap Basic Editor's about box.


Sheet Menu

The Sheet menu provides the sheet options.

Item	Description

Open Uses 	Open all the '#Uses modules for the current macro/module.

Close All 	Close all the macros/modules.

1...9 	Show this macro/module.
Hot Key: Ctrl+1...Ctrl+9


File New

Create a new macro.


File Open

Load an existing macro/module from disk.


File Close

Close the current macro/module.


File Save

Save the current macro/module to disk.


File Save All

Save all the macros/modules to disk.


File Print

Print the current macro/module.


Edit Undo

Undo the last edit.
Hot Key: Ctrl+Z


Edit Cut

Move the selected text to the Clipboard.
Hot Key: Ctrl+X


Edit Copy

Copy the selected text to the Clipboard.
Hot Key: Ctrl+C


Edit Paste

Paste the Clipboard text over the selected text.
Hot Key: Ctrl+V


Edit UserDialog

Edit a UserDialog. (see UserDialog Editor)


Edit Properties

Edit the module's properties.


Macro Run

Run the macro to completion. (If the macro is not active, start it.)
Hot Key: Ctrl+F5


Macro Pause

Stop the macro/module. Execution can be continued.
Hot Key: Esc


Macro End

Terminate the macro/module. Execution cannot be continued.


Debug Step Into

Execute the current line. If the current line is a subroutine or function call, stop on the first line of that subroutine or function. (If the macro is not active, start it.)
Hot Key: F8


Debug Step Over

Execute to the next line. If the current line is a subroutine or function call, execute that subroutine of function completely.
Hot Key: Shift+F8


Debug Step Out

Step out of the current subroutine or function.
Hot Key: Ctrl+F8


Debug Toggle Break

Toggle the break point on the current line.
Hot Key: F9


Debug Quick Watch

Show the value of the expression under of the cursor in the immediate window.
Hot Key: Shift+F9


Debug Browse

Show the methods/properties of the expression under of the cursor. (see Object Browser)


Browser DataType List

List of all the special data types.


Browser Methods/Properties List

List of all the methods/properties for the current data type.


Browser Info Area

The method/property name, result or value and the dispatch id are shown here.


Browser Help Area

The ? button is enabled if the object's method/property has help file information. The "Help String" shows a short description of the method/property.


Browser Parameters List

List of all the parameters for the current method/property.


Browser Back Button

Back up. Undo the previous follow.


Browser Path Edit Box

Shows the object browser's current path.


Browser Paste Button

Paste the current method/property into the edit or immediate window.


Browser Close Button

Close the object browser window.


Edit Properties

Edit the selected item's properties.
Hot Key: Enter


Delete

Delete the selected item.
Hot Key: Del


Cut

Move the selected item to the Clipboard.
Hot Key: Ctrl+X


Copy

Copy the selected item to the Clipboard.
Hot Key: Ctrl+C


Paste

Paste the Clipboard item in front of the selected item.
Hot Key: Ctrl+Z


Move In Front

Move the selected item in front (towards End Dialog).
Hot Key: Ctrl+Up


Move Behind

Move the selected item behind (towards Begin Dialog).
Hot Key: Ctrl+Down


Select Behind

Select the item behind the selected item (towards Begin Dialog).


Select In Front

Select the item in front of the selected item (towards End Dialog).


Change Grid Settings

Change the grid settings.
Hot Key: Ctrl+G


Save Changes and Exit

Save the UserDialog and exit the UserDialog editor.


Select Item

Select, move or edit item mode.


Add Text

Add Text item.


Add TextBox

Add TextBox item.


Add GroupBox

Add GroupBox item.


Add CheckBox

Add CheckBox item.


Add OptionButton

Add OptionButton item.


Add ComboBox

Add ComboBox item.


Add ListBox

Add ListBox item.


Add DropListBox

Add DropListBox item.


Add PushButton

Add PushButton item.


Add OKButton

Add OKButton item.


Add CancelButton

Add CancelButton item.